package fields;

import java.io.RandomAccessFile;

import data.AbstractDataType;
import data.StringType;
import fileProcessing.ParsingException;

public class DriversLicense extends AbstractField {

	public DriversLicense(String fieldName,String category) {
		super(fieldName,category);
	}

	@Override
	public void addData(RandomAccessFile dataFile, String value) throws ParsingException {
		new StringType(value).writeValue(dataFile);
		
	}

	@Override
	public AbstractDataType getValue(RandomAccessFile dataFile) throws ParsingException {
		return new StringType(dataFile);
	}

	@Override
	public int verify(String s) {
		// TODO Auto-generated method stub
		return 0;
	}

}
